package com.yfp.device.service.impl;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.device.domain.OrderList;
import com.yfp.device.mapper.OrderListMapper;
import com.yfp.device.service.OrderListService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author admin
 * @description 针对表【order_list(订单表)】的数据库操作Service实现
 * @createDate 2024-06-24 19:09:20
 */
@Service
public class OrderListServiceImpl extends ServiceImpl<OrderListMapper, OrderList> implements OrderListService {

    @Resource
    private OrderListMapper orderListMapper;

    @Override
    public void updateFinishTimeByOrderDetailId(String orderDetailId, String exitCloseTime) {
        DateTime parse = DateUtil.parse(exitCloseTime);
        orderListMapper.updateFinishTimeByOrderDetailId(orderDetailId, parse);
    }
}




